package com.xbongbong.paas.pojo;

import com.alibaba.fastjson.JSONArray;
import com.xbongbong.pro.domain.entity.ReRollBackEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 采购退货、退货退款afterSave处理关联新建
 * @author zhouwq
 * @date 2020/6/3 8:53
 */

@Getter
@Setter
@ToString
public class AssociatedBusinessAfterSavePojo implements Serializable {
    private static final long serialVersionUID = -8945023026709005827L;

    /**
     * 关联发票信息
     */
    private JSONArray invoiceArray;

    /**
     * 关联付款单信息
     */
    private JSONArray sheetArray;

    /**
     * 关联应收款信息
     */
    private JSONArray paymentArray;

    /**
     * 合计退款金额
     */
    private Double refundAmount;

    /**
     * 回滚时，存储的付款单发票信息
     */
    private ReRollBackEntity reRollBackEntity;

    /**
     * 付款单、回款单是否入审批
     */
    private Boolean sheetIsProcess;

    /**
     * 发票是否入审批
     */
    private Boolean invoiceIsProcess;

    public AssociatedBusinessAfterSavePojo() {
    }

    public AssociatedBusinessAfterSavePojo(JSONArray invoiceArray, JSONArray sheetArray, JSONArray paymentArray, Double refundAmount, ReRollBackEntity reRollBackEntity, Boolean sheetIsProcess, Boolean invoiceIsProcess) {
        this.invoiceArray = invoiceArray;
        this.sheetArray = sheetArray;
        this.paymentArray = paymentArray;
        this.refundAmount = refundAmount;
        this.reRollBackEntity = reRollBackEntity;
        this.sheetIsProcess = sheetIsProcess;
        this.invoiceIsProcess = invoiceIsProcess;
    }

    public AssociatedBusinessAfterSavePojo(JSONArray invoiceArray, JSONArray sheetArray, JSONArray paymentArray, Double refundAmount, ReRollBackEntity reRollBackEntity) {
        this.invoiceArray = invoiceArray;
        this.sheetArray = sheetArray;
        this.paymentArray = paymentArray;
        this.refundAmount = refundAmount;
        this.reRollBackEntity = reRollBackEntity;
    }
}
